package one.stand.event;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.context.ApplicationEvent;

@Data
@EqualsAndHashCode(callSuper = true)
public class OrderCompleteEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent
     */
    private OrderCompleteEvent() {
        super("order complete");
    }

    public OrderCompleteEvent(Integer orderId) {
        this();
        this.orderId = orderId;
    }

    private Integer orderId;
}
